package cn.edu.abtu.mapper;

import cn.edu.abtu.entity.SysPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * (SysPermission)表数据库访问层
 *
 * @author makejava
 * @since 2022-11-16 11:48:23
 */
@Repository
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    /**
     * 根据用户ID查询权限列表
     *
     * @param userId
     * @return
     */
    public List<SysPermission> getPermissionListByUserId(Long userId);

    public List<SysPermission> getPermissionListByRoleId(Long roleId);

}

